import Vue from "vue";
import VueEsign from 'vue-esign'
Vue.use(VueEsign)
import "@/icons"; // icon
// 引入全局组件
// import componentsAll from '@/components'

// console.log("componentsAll",componentsAll)
// Vue.use(componentsAll)

// 富文本全局样式引入
import "quill/dist/quill.core.css";
import "quill/dist/quill.snow.css";
import "quill/dist/quill.bubble.css";

// 自定义指令 渲染富文本
Vue.directive("richText", (el, binding) => {
  if (binding.value) {
    let html = binding.value;
    try {
      html = decodeURIComponent(html.replace(/%(?!\d|[ABCDEF]+)/g, "%25"));
    } catch (e) { }
    html = "<div class='ql-editor'>" + html + "</div>"
    html = html.replace(/position: fixed;/g, "position: relative;");
    html = html.replace(/position: absolute;/g, "position: relative;");
    el.innerHTML = html;
  }
});
import axios from 'axios';
Vue.prototype.$axios = axios;


import * as utils from "@/components/formGenerator/utils/index"
Vue.prototype.$utils = utils
// import "@/components/formGenerator/styles/index.scss";
// import "@/components/formGenerator/styles/generator.scss";
// import "@/components/formGenerator/styles/theme.scss";
import "@/components/formGenerator/utils/component";




